/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.practica4;

import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.ejb.Stateless;

/**
 *
 * @author josem
 */
@WebService(serviceName = "comprobacionEntrada")
@Stateless()
public class comprobacionEntrada {

    /**
     * Web service operation
     */
    @WebMethod(operationName = "comprobarEntrada")
    public String comprobarEntrada(@WebParam(name = "rol") int rol, @WebParam(name = "tarea") int tarea, @WebParam(name = "horas") int horas) {
        String res = "KO";
        if (rol != 0 && horas != 0 && tarea != 0) {
            res = "OK";
        }
        return res;
    }
}
